import React from 'react'

export default function Child({ count, changeCount }) {
  return (
    <div>
      <h3>Child: {count}</h3>
      {/* <button onClick={() => changeCount()}>修改爷爷的count</button> */}
      <button onClick={changeCount}>修改爷爷的count</button>
    </div>
  )
}
